package haoyc.handler;

import haoyc.entity.Message;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Memory
 * @version 1.0
 * @date 2021/11/23
 */
@Slf4j
@ChannelHandler.Sharable
public class OperatorHandler extends SimpleChannelInboundHandler<Message> {

    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, Message message) throws Exception {
        log.info("messages is hahaha {}", message);
    }

}
